<%--
  Created by IntelliJ IDEA.
  User: wang
  Date: 2022/11/26
  Time: 14:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>增加商品</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/bootstrap.min.css" />
    <script src="js/bootstrap.min.js"></script>

</head>
<body>
<%--导航栏代码 通过bootstrap网站获取--%>
<nav class="navbar navbar-default navbar-inverse">
    <div class="container-fluid">
        <div class="navbar-header">
            <button
                    type="button"
                    class="navbar-toggle collapsed"
                    data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1"
                    aria-expanded="false"
            >
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">Brand</a>
        </div>

        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li class="active">
                    <a href="#">Link <span class="sr-only">(current)</span></a>
                </li>
                <li><a href="${pageContext.request.contextPath}/index.jsp">退出</a></li>
                <li class="dropdown">
                    <a
                            href="#"
                            class="dropdown-toggle"
                            data-toggle="dropdown"
                            role="button"
                            aria-haspopup="true"
                            aria-expanded="false"
                    >Dropdown <span class="caret"></span
                    ></a>
                    <ul class="dropdown-menu">
                        <li><a href="#">Action</a></li>
                        <li><a href="#">Another action</a></li>
                        <li><a href="#">Something else here</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="#">Separated link</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="#">One more separated link</a></li>
                    </ul>
                </li>
            </ul>
            <form class="navbar-form navbar-left">
                <div class="form-group">
                    <input type="text" class="form-control" placeholder="Search" />
                </div>
                <button type="submit" class="btn btn-default">Submit</button>
            </form>
            <ul class="nav navbar-nav navbar-right">
                <li><a href="#">Link</a></li>
                <li class="dropdown">
                    <a
                            href="#"
                            class="dropdown-toggle"
                            data-toggle="dropdown"
                            role="button"
                            aria-haspopup="true"
                            aria-expanded="false"
                    >Dropdown <span class="caret"></span
                    ></a>
                    <ul class="dropdown-menu">
                        <li><a href="#">Action</a></li>
                        <li><a href="#">Another action</a></li>
                        <li><a href="#">Something else here</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="#">Separated link</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</nav>

<div class="container">
    <form
<%--            表单提交途径--%>
            action="${pageContext.request.contextPath}/InsertGoodsController"
            method="post"
            class="form-horizontal col-sm-offset-3 col-md-offset-3"
            enctype="multipart/form-data"
    >
        <h3 class="form-title">增加商品</h3>
        <div class="col-sm-9 col-md-9">
            <div class="form-group">
                <!--        用户名图标和用户名输入框            -->
                <i class="fa fa-user" aria-hidden="true"></i>
                <input
                        class="form-control"
                        type="text"
                        name="username"
                        id="username"
                        placeholder="请输入用户名"
                        required
                        autofocus
                />
            </div>
            <!--        密码图标和密码输入框                -->
            <div class="form-group">
                <i class="fa fa-key" aria-hidden="true"></i>
                <input
                        class="form-control"
                        type="text"
                        name="goodname"
                        id="goodname"
                        placeholder="请输入商品名"
                        required
                />
            </div>

            <div class="form-group">
                <i class="fa fa-key" aria-hidden="true"></i>
                <input
                        class="form-control"
                        type="file"
                        name="goodimg"
                        id="goodimg"
                        placeholder="请上传商品图片"
                />
            </div>

            <div class="form-group">
                <i class="fa fa-key" aria-hidden="true"></i>
                <input
                        class="form-control"
                        type="text"
                        name="goodtype"
                        id="goodtype"
                        placeholder="请输入商品类型"
                        required
                />
            </div>

            <div class="form-group">
                <i class="fa fa-key" aria-hidden="true"></i>
                <input
                        class="form-control"
                        type="text"
                        name="changemedium"
                        id="changemedium"
                        placeholder="请输入交易媒介"
                        required
                />
            </div>

            <div class="form-group">
                <i class="fa fa-key" aria-hidden="true"></i>
                <input
                        class="form-control"
                        type="text"
                        name="changeway"
                        id="changeway"
                        placeholder="请输入交易方式"
                        required
                />
            </div>

        </div>

<%--        提交按钮--%>
        <div class="form-group">
            <input
                    type="submit"
                    value="添加"
                    class="btn btn-success pull-right"
            />
        </div>
    </form>
</div>

</body>
</html>
